package tako.wisers.com.android.apis.parser.xml.item;

import tako.wisers.com.android.apis.adapter.BitmapUtils;
import android.graphics.Bitmap;

public class Draw {
	private String name;
	private String viewName;
	private String layoutName;
	private String url;
	private Bitmap backGround;
	
	public Draw() {
		super();
	}
	public Draw(String name, String viewID, String layoutID, String url) {
		super();
		this.name = name;
		this.viewName = viewID;
		this.layoutName = layoutID;
		this.url = url;
		new LoadBitmapThread().start();
	}
	
	class LoadBitmapThread extends Thread{
		@Override
		public void run() {
			backGround = BitmapUtils.loadBitmap(url);
		}
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getViewID() {
		return viewName;
	}
	public void setViewID(String viewID) {
		this.viewName = viewID;
	}
	public String getLayoutID() {
		return layoutName;
	}
	public void setLayoutID(String layoutID) {
		this.layoutName = layoutID;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Bitmap getBackGround() {
		return backGround;
	}
	public void setBackGround(Bitmap backGround) {
		this.backGround = backGround;
	}
}
